package whlogger.launcher.models.userdata;

import hashes.md5.ComputeMD5;

/**
 *
 * @author d3rbastl3r
 */
public class LogInData {
    private String nickname;
    private byte[] md5Password;
    
    public LogInData(String nickname, String password){
		this.nickname = nickname;
		setPassword(password);
    }
	
	public String getNickname(){
		return this.nickname;
	}
    
    public void setNickname(String nickname){
        this.nickname = nickname;
    }
    
    public final void setPassword(String password){
		setMD5Password(ComputeMD5.compute(password));
    }
	
	public byte[] getMD5Password(){
		return this.md5Password;
	}
	
	public void setMD5Password(byte[] md5Password){
		this.md5Password = md5Password;
	}
}
